#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}
void MainWindow::on_pushButton_1_clicked()
{
    S+="1";
    ui->textEdit_show->setText(S);
}

void MainWindow::on_pushButton_2_clicked()
{
    S+="2";
    ui->textEdit_show->setText(S);
}

void MainWindow::on_pushButton_3_clicked()
{
    S+="3";
    ui->textEdit_show->setText(S);
}

void MainWindow::on_pushButton_4_clicked()
{
    S+="4";
    ui->textEdit_show->setText(S);
}

void MainWindow::on_pushButton_5_clicked()
{
    S+="5";
    ui->textEdit_show->setText(S);
}

void MainWindow::on_pushButton_6_clicked()
{

    S+="6";
    ui->textEdit_show->setText(S);

}

void MainWindow::on_pushButton_7_clicked()
{

    S+="7";
    ui->textEdit_show->setText(S);

}

void MainWindow::on_pushButton_8_clicked()
{

    S+="8";
    ui->textEdit_show->setText(S);

}

void MainWindow::on_pushButton_9_clicked()
{

    S+="9";
    ui->textEdit_show->setText(S);

}

void MainWindow::on_pushButton_0_clicked()
{

    S+="0";
    ui->textEdit_show->setText(S);

}
